<template>
  <ui-container :hasSearch="true">
    <template #extra>
      <a-button type="primary" @click="handleClickToPushDetail">新增</a-button>
      <a-button type="danger">删除</a-button>
    </template>
    <template #container>
      <ui-form :schema="schema" :dataSource="formData" :slotCount="1">
        <template #index1>
          <a-form-item label="上传头像"> </a-form-item>
        </template>
        <template #footer>
          <a-button type="primary" @click="PrintLog">提交</a-button>
          <a-button type="primary">提交</a-button>
        </template>
      </ui-form>
    </template>
  </ui-container>
</template>

<script>
import UIContainer from "../../components/basic/UIContainer";
import UIForm from "components/form/UIForm";
import { schema } from "assets/js/Tmp";

import { Button } from "ant-design-vue";

export default {
  name: "Detail",
  components: {
    UiContainer: UIContainer,
    UiForm: UIForm,
    AButton: Button,
  },
  data() {
    return {
      schema,
      formData: {
        loginName: "俗世游子",
      },
    };
  },
};
</script>

<style lang="less" scoped>
</style>